package com.github.jspxnet.worktask.core.job;

import com.github.jspxnet.worktask.model.enums.FlowNodeEnumType;
import com.github.jspxnet.worktask.model.enums.WorkTaskEnumType;

public class OrJobTask extends BaseTaskAction{
    @Override
    public boolean execute() throws Exception {
        //或签
        currentWorkTask.setUsers(workTaskParam.getUsers());
        currentWorkTask.setWorkTaskType(WorkTaskEnumType.AUDIT.getValue());
        currentWorkTask.setFlowNodeType(FlowNodeEnumType.END.getValue());
        runtimeServiceDAO.update(currentWorkTask,new String[]{"flowNodeType","workTaskType","users"});
        return true;
    }
}
